package com.cjd.common.javascript;

import android.webkit.JavascriptInterface;

import org.jetbrains.annotations.NotNull;

/**
 * @Author chenjidong
 * @email 374122600@qq.com
 * created 2019/12/26
 * description
 */
public class ArticleWebAppInterface extends WebAppInterface {
    public static final String ASSET_PATH = "file:///android_asset/www/html_article.html";
    private String json;

    public ArticleWebAppInterface(@NotNull String htmlStr, String json) {
        super(htmlStr);
        this.json = json;
    }

    @JavascriptInterface
    public String getJson() {
        return json;
    }
}
